package com.share.design.single;

/**
 * 饿汉式
 * author:caifan
 * date:2020/2/4
 */
public class HungrySingleton {
    private static HungrySingleton singleton = new HungrySingleton();
    private HungrySingleton() {}

    public static HungrySingleton getInstance() {
        return singleton;
    }
}
